home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20000217-20000824
/
000115_news@columbia.edu _Tue Mar 14 16:33:10 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA08284
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 14 Mar 2000 16:33:10 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id QAA12858
for kermit.misc@watsun.cc.columbia.edu; Tue, 14 Mar 2000 16:10:05 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: jrc@lhutz.demon.co.uk
Subject: Re: Sockets programming: telnet problem.
Date: Tue, 14 Mar 2000 21:00:20 GMT
Organization: Deja.com - Before you buy.
Message-ID: <8am990$9jj$1@nnrp1.deja.com>
To: kermit.misc@columbia.edu
In article <8allt6$p76$1@newsmaster.cc.columbia.edu>,
fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote:
> In article <8ak6qk$qse$1@nnrp1.deja.com>, <jamescurry@my-deja.com> wrote:
> : Ok, I'm attempting to write a (very) basic telnet client as an
> : experiment. Actually, I'm using it to connect to various talkers,
> : NUTS based which don't do very much in following the telnet protocol.
> : (They seem to ignore or treat as CR any control codes, in fact the
> : only code they ever DO seem to send is the echo control when it's
> : time to enter a password).
> : My program is sending data out in a character based manner (as soon
> : as a key is pressed, sent it with write() over the socket) and
> : reading in as much data as it can at once with read(), using select()
> : to check if there is any data to be read on the socket. The problem
> : is as follows: when a NUTS talker displays a prompt such as "give me
> : a name:" on it's login screen, or COM> which is a command prompt, this
> : line is NOT terminated by a carriage return, as it's a prompt and the
> : user who is telnetting in is meant to make their input on the same
> : line. However, these prompts simply aren't seen by my program. In
> : fact, neither select() or read() are aware of the existence of this
> : line until at least one character has been sent back the other way!
> : Therefore, I don't see the "give me a name:" prompt until I press the
> : first letter of my name, which then appears not to be displayed as
> : the prompt appears on top of it. After reading through the details
> : of the telnet protocol, I figured that maybe I needed to do something
> : strange like send a GA code. But 255, 249 isn't recognised by the
> : talkers, which appears to worsen matters.
> : So HELP!!! What am I doing wrong? How can I get my program to see
> : these unterminated prompts before it sends any output back to the
> : server.
> :
> There really is no longer any reason for everybody to write their own
> Telnet implementation from the ground up. It's all been done for you
> already in C-Kermit:
Thanks! While I will take a look at C-Kermit, I am still writing my
ground up code simply for my own experience and sense of
satisfaction.
I really am VERY curious as to what the probelm is and why I'm not
seeing those prompts until after input, so I really would be very
appreciative if someone could still answer my question via email
(jrc@aardsets.com).
Thanks very much for the information, and rest assured, I WILL take
a look at that, but I'm also determined to complete what I've started.
Sent via Deja.com http://www.deja.com/
Before you buy.